package com.homework.service;

import java.sql.SQLException;

import com.homework.bean.PageInfoBean;
import com.homework.dao.PageInfoDao;

public class PageInfoService {
	private static PageInfoService pageInfoService = null;
	private PageInfoDao pageInfoDao;

	public PageInfoService() {
		this.pageInfoDao = PageInfoDao.getInstance();
	}

	public static PageInfoService getInstance() {
		if (pageInfoService == null) {
			pageInfoService = new PageInfoService();
		}
		return pageInfoService;
	}
	
	// 设置pageInfoBean
	public void setPageInfoBean(PageInfoBean pageInfoBean) throws SQLException{
		pageInfoDao.setPageInfoBean(pageInfoBean);
	}
}
